<?php


function usort_chapter($a, $b) {
    if ($a['chapter'] == $b['chapter']) {
        usort($novel->chapter, 'sortChapter');
        return 0;
    }
    return ($a['chapter'] < $b['chapter']) ? 1 : -1;
}
